package cic;

import java.util.HashMap;
import java.util.Map;

public class InsuranceManager {

	private Map<String, Insurance> manager;
	
	public InsuranceManager() {
		manager = new HashMap<String, Insurance>();
	}
	
	public void addInsurance(Insurance ins) {
		manager.put(ins.number, ins);
	}
	
	public Insurance getInsurance(String number) {
		return manager.get(number);
	}
	
	public void delInsurance(String number) {
		manager.remove(number);
	}
}
